<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CustomerAccountDataSet" targetNamespace="http://tempuri.org/CustomerAccounts.xsd" xmlns:mstns="http://tempuri.org/CustomerAccounts.xsd" xmlns="http://tempuri.org/CustomerAccounts.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="GlobalBankConnection" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="GlobalBankConnection (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.GlobalBankConnection.ConnectionString" Provider="System.Data.SqlClient">
          </Connection>
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AccountTableAdapter" GeneratorDataComponentClassName="AccountTableAdapter" Name="Account" UserDataComponentName="AccountTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="GlobalBankConnection (Web.config)" DbObjectName="[.\APP_DATA\GLOBALBANK.MDF].dbo.sp_CustomerAccounts" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Fill" GenerateShortCommands="False" GeneratorSourceName="Fill" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="False">
                    <CommandText>dbo.sp_CustomerAccounts</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                      <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CustomerId" Precision="0" ProviderType="NVarChar" Scale="0" Size="32" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="AccountNumber" DataSetColumn="AccountNumber" />
              <Mapping SourceColumn="CustomerId" DataSetColumn="CustomerId" />
              <Mapping SourceColumn="AccountTypeId" DataSetColumn="AccountTypeId" />
              <Mapping SourceColumn="Balance" DataSetColumn="Balance" />
              <Mapping SourceColumn="DateOpened" DataSetColumn="DateOpened" />
              <Mapping SourceColumn="LastTransactionDate" DataSetColumn="LastTransactionDate" />
              <Mapping SourceColumn="InterestRate" DataSetColumn="InterestRate" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AccountTypeTableAdapter" GeneratorDataComponentClassName="AccountTypeTableAdapter" Name="AccountType" UserDataComponentName="AccountTypeTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="GlobalBankConnection (Web.config)" DbObjectName="dbo.AccountType" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Fill" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="False">
                    <CommandText>SELECT AccountTypeId, AccountType, Fees, MinimumDeposit, MaxMonthlyTransaction, InterestRate FROM dbo.AccountType</CommandText>
                    <Parameters>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="AccountTypeId" DataSetColumn="AccountTypeId" />
              <Mapping SourceColumn="AccountType" DataSetColumn="AccountType" />
              <Mapping SourceColumn="Fees" DataSetColumn="Fees" />
              <Mapping SourceColumn="MinimumDeposit" DataSetColumn="MinimumDeposit" />
              <Mapping SourceColumn="MaxMonthlyTransaction" DataSetColumn="MaxMonthlyTransaction" />
              <Mapping SourceColumn="InterestRate" DataSetColumn="InterestRate" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="CustomerAccountDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="CustomerAccountDataSet" msprop:Generator_DataSetName="CustomerAccountDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Account" msprop:Generator_UserTableName="Account" msprop:Generator_RowDeletedName="AccountRowDeleted" msprop:Generator_RowChangedName="AccountRowChanged" msprop:Generator_RowClassName="AccountRow" msprop:Generator_RowChangingName="AccountRowChanging" msprop:Generator_RowEvArgName="AccountRowChangeEvent" msprop:Generator_RowEvHandlerName="AccountRowChangeEventHandler" msprop:Generator_TableClassName="AccountDataTable" msprop:Generator_TableVarName="tableAccount" msprop:Generator_RowDeletingName="AccountRowDeleting" msprop:Generator_TablePropName="Account">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="AccountNumber" msprop:Generator_UserColumnName="AccountNumber" msprop:Generator_ColumnPropNameInRow="AccountNumber" msprop:Generator_ColumnVarNameInTable="columnAccountNumber" msprop:Generator_ColumnPropNameInTable="AccountNumberColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="32" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="CustomerId" msprop:Generator_UserColumnName="CustomerId" msprop:Generator_ColumnPropNameInRow="CustomerId" msprop:Generator_ColumnVarNameInTable="columnCustomerId" msprop:Generator_ColumnPropNameInTable="CustomerIdColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="32" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="AccountTypeId" msprop:Generator_UserColumnName="AccountTypeId" msprop:Generator_ColumnPropNameInRow="AccountTypeId" msprop:Generator_ColumnVarNameInTable="columnAccountTypeId" msprop:Generator_ColumnPropNameInTable="AccountTypeIdColumn" type="xs:int" />
              <xs:element name="Balance" msprop:Generator_UserColumnName="Balance" msprop:Generator_ColumnPropNameInRow="Balance" msprop:Generator_ColumnVarNameInTable="columnBalance" msprop:Generator_ColumnPropNameInTable="BalanceColumn" type="xs:decimal" />
              <xs:element name="DateOpened" msprop:Generator_UserColumnName="DateOpened" msprop:Generator_ColumnPropNameInRow="DateOpened" msprop:Generator_ColumnVarNameInTable="columnDateOpened" msprop:Generator_ColumnPropNameInTable="DateOpenedColumn" type="xs:dateTime" />
              <xs:element name="LastTransactionDate" msprop:Generator_UserColumnName="LastTransactionDate" msprop:Generator_ColumnPropNameInRow="LastTransactionDate" msprop:Generator_ColumnVarNameInTable="columnLastTransactionDate" msprop:Generator_ColumnPropNameInTable="LastTransactionDateColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="InterestRate" msprop:Generator_UserColumnName="InterestRate" msprop:Generator_ColumnPropNameInRow="InterestRate" msprop:Generator_ColumnVarNameInTable="columnInterestRate" msprop:Generator_ColumnPropNameInTable="InterestRateColumn" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="AccountType" msprop:Generator_UserTableName="AccountType" msprop:Generator_RowDeletedName="AccountTypeRowDeleted" msprop:Generator_RowChangedName="AccountTypeRowChanged" msprop:Generator_RowClassName="AccountTypeRow" msprop:Generator_RowChangingName="AccountTypeRowChanging" msprop:Generator_RowEvArgName="AccountTypeRowChangeEvent" msprop:Generator_RowEvHandlerName="AccountTypeRowChangeEventHandler" msprop:Generator_TableClassName="AccountTypeDataTable" msprop:Generator_TableVarName="tableAccountType" msprop:Generator_RowDeletingName="AccountTypeRowDeleting" msprop:Generator_TablePropName="AccountType">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="AccountTypeId" msprop:Generator_UserColumnName="AccountTypeId" msprop:Generator_ColumnPropNameInRow="AccountTypeId" msprop:Generator_ColumnVarNameInTable="columnAccountTypeId" msprop:Generator_ColumnPropNameInTable="AccountTypeIdColumn" type="xs:int" />
              <xs:element name="AccountType" msprop:Generator_UserColumnName="AccountType" msprop:Generator_ColumnPropNameInRow="AccountType" msprop:Generator_ColumnVarNameInTable="columnAccountType" msprop:Generator_ColumnPropNameInTable="AccountTypeColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="64" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Fees" msprop:Generator_UserColumnName="Fees" msprop:Generator_ColumnPropNameInRow="Fees" msprop:Generator_ColumnVarNameInTable="columnFees" msprop:Generator_ColumnPropNameInTable="FeesColumn" type="xs:decimal" minOccurs="0" />
              <xs:element name="MinimumDeposit" msprop:Generator_UserColumnName="MinimumDeposit" msprop:Generator_ColumnPropNameInRow="MinimumDeposit" msprop:Generator_ColumnVarNameInTable="columnMinimumDeposit" msprop:Generator_ColumnPropNameInTable="MinimumDepositColumn" type="xs:decimal" minOccurs="0" />
              <xs:element name="MaxMonthlyTransaction" msprop:Generator_UserColumnName="MaxMonthlyTransaction" msprop:Generator_ColumnPropNameInRow="MaxMonthlyTransaction" msprop:Generator_ColumnVarNameInTable="columnMaxMonthlyTransaction" msprop:Generator_ColumnPropNameInTable="MaxMonthlyTransactionColumn" type="xs:int" minOccurs="0" />
              <xs:element name="InterestRate" msprop:Generator_UserColumnName="InterestRate" msprop:Generator_ColumnPropNameInRow="InterestRate" msprop:Generator_ColumnVarNameInTable="columnInterestRate" msprop:Generator_ColumnPropNameInTable="InterestRateColumn" type="xs:decimal" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Account" />
      <xs:field xpath="mstns:AccountNumber" />
    </xs:unique>
    <xs:unique name="AccountType_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:AccountType" />
      <xs:field xpath="mstns:AccountTypeId" />
    </xs:unique>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="FK_Account_AccountType" msdata:parent="AccountType" msdata:child="Account" msdata:parentkey="AccountTypeId" msdata:childkey="AccountTypeId" msprop:Generator_UserRelationName="FK_Account_AccountType" msprop:Generator_RelationVarName="relationFK_Account_AccountType" msprop:Generator_UserChildTable="Account" msprop:Generator_UserParentTable="AccountType" msprop:Generator_ParentPropName="AccountTypeRow" msprop:Generator_ChildPropName="Getsp_CustomerAccountsRows" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>